Part Number Hot Search : 
FR107SG 0STRR 84110310 25AA160 AAT2601 BG12864 TC4052BF OV9665
Product Description
Full Text Search
 

To Download PIC12LF1571 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ? 2013 microchip technology inc. ds40001713a-page 1 pic12(l)f1571/2 this document includes the programming specifications for the following devices: 1.0 overview the device can be programmed using either the high- voltage in-circuit serial programming? (icsp?) method or the low-voltage icsp method. 1.1 hardware requirements 1.1.1 high-voltage icsp programming in high-voltage icsp mode, the device requires two programmable power supplies: one for v dd and one for the mclr /v pp pin. 1.1.2 low-voltage icsp programming in low-voltage icsp mode, these devices can be programmed using a single v dd source in the operating range. the mclr /v pp pin does not have to be brought to a different voltage, but can instead be left at the normal operating voltage. 1.1.2.1 single-supply icsp programming the lvp bit in configuration word 2 enables single- supply (low-voltage) icsp programming. the lvp bit defaults to a ? 1 ? (enabled) from the factory. the lvp bit may only be programmed to ? 0 ? by entering the high- voltage icsp mode, where the mclr /v pp pin is raised to v ihh . once the lvp bit is programmed to a ? 0 ?, only the high-voltage icsp mode is available and only the high-voltage icsp mode can be used to program the device. 1.2 pin utilization five pins are needed for icsp programming. the pins are listed in ta b l e 1 - 1 . ? pic12f1571 ? PIC12LF1571 ? pic12f1572 ? pic12lf1572 note 1: the high-voltage icsp mode is always available, regardless of the state of the lvp bit, by applying v ihh to the mclr / v pp pin. 2: while in low-voltage icsp mode, mclr is always enabled, regardless of the mclre bit, and the port pin can no longer be used as a general purpose input. table 1-1: pin descriptions during programming for pic12(l)f1571/2 pin name during programming function pin type pin description icspclk icspclk i clock input ? schmitt trigger input icspdat icspdat i/o data input/output ? schmitt trigger input mc lr /v pp program/verify mode p (1) program mode select/programming power supply v dd v dd p power supply v ss v ss p ground legend: i = input, o = output, p = power note 1: the programming high voltage is internally generated. to activate the program/verify mode, high voltage needs to be applied to mclr input. since the mclr is used for a level source, mclr does not draw any significant current. pic12(l)f1571/2 memory programming specification
pic12(l)f1571/2 ds40001713a-page 2 ? 2013 microchip technology inc. 2.0 device pinouts the pin diagram for the pic12(l)f1571/2 family is shown in figure 2-1 . the pins that are required for programming are listed in tab l e 1 - 1 and shown in bold lettering in the pin diagram. figure 2-1: 8-pin diagram for pic12(l)f1571/2 pdip, soic, dfn, msop 1 2 3 4 8 7 6 5 v dd ra5 ra4 ra3/mclr /v pp v ss ra0/icspdat ra1/icspclk ra2 pic12(l)f1571/2
? 2013 microchip technology inc. ds40001713a-page 3 pic12(l)f1571/2 3.0 memory map the memory is broken into two sections: program memory and configuration memory. figure 3-1: pic12(l)f1571 program memory mapping 7fff h 8000 h 8200 h ffff h implemented 1 kw implemented 03ff h maps to 0-03ffh maps to program memory configuration memory 8000-81ff user id location user id location user id location user id location reserved revision id device id configuration word 1 configuration word 2 calibration word 1 calibration word 2 calibration word 3 reserved reserved reserved reserved reserved reserved 8000h 8001h 8002h 8003h 8004h 8005h 8006h 8007h 8009h 8008h 800ah 0000h 800bh 800ch 800dh 800eh 800fh 8010h 8011h-81ffh
pic12(l)f1571/2 ds40001713a-page 4 ? 2013 microchip technology inc. figure 3-2: pic12(l)f1572 program memory mapping 7fff h 8000 h 8200 h ffff h implemented 2 kw implemented 07ff h maps to 0-07ffh maps to program memory configuration memory 8000-81ff user id location user id location user id location user id location reserved revision id device id configuration word 1 configuration word 2 calibration word 1 calibration word 2 calibration word 3 reserved reserved reserved reserved reserved reserved 8000h 8001h 8002h 8003h 8004h 8005h 8006h 8007h 8009h 8008h 800ah 0000h 800bh 800ch 800dh 800eh 800fh 8010h 8011h-81ffh
? 2013 microchip technology inc. ds40001713a-page 5 pic12(l)f1571/2 3.1 user id location a user may store identification information (user id) in four designated locations. the user id locations are mapped to 8000h-8003h. each location is 14 bits in length. code protection has no effect on these memory locations. each location may be read with code protection enabled or disabled. 3.2 revision id the revision id word is located at 8005h. this location is read-only and cannot be erased or modified. 3.3 device id the device id word is located at 8006h. this location is read-only and cannot be erased or modified. 3.4 configuration words the device has two configuration words, configuration word 1 (8007h) and configuration word 2 (8008h). the individual bits within these configuration words are used to enable or disable device functions such as the brown-out reset, code protection and power-up timer. 3.5 calibration words the internal calibration values are factory-calibrated and stored in the calibration word locations. see figure 3-1 for address information. the calibration words do not participate in erase operations. the device can be erased without affecting the calibration words. note: mplab ? ide only displays the seven least significant bits (lsb) of each user id location; the upper bits are not read. it is recommended that only the seven lsbs be used if mplab ide is the primary tool used to read these addresses.
pic12(l)f1571/2 ds40001713a-page 6 ? 2013 microchip technology inc. register 3-1: deviceid: device id register (1) rrrrrr dev<13:8> bit 13 bit 8 rrrrrrrr dev<7:0> bit 7 bit 0 legend: x = bit is unknown r = readable bit ?0? = bit is cleared ?1? = bit is set bit 13-0 dev<13:0>: device id bits refer to tab l e 3 - 1 to determine what these bits will read on which device. a value of 3fffh is invalid. note 1: this location cannot be written. register 3-2: revisionid: revision id register (1) rrrrrr rev<13:8> bit 13 bit 8 rrrrrrrr rev<7:0> bit 7 bit 0 legend: x = bit is unknown r = readable bit ?0? = bit is cleared ?1? = bit is set bit 13-0 rev<13:0>: revision id bits these bits are used to identify the device revision. note 1: this location cannot be written. table 3-1: device id values device device id revision id pic12f1571 3051h 2xxxh PIC12LF1571 3053h 2xxxh pic12f1572 3050h 2xxxh pic12lf1572 3052h 2xxxh
? 2013 microchip technology inc. ds40001713a-page 7 pic12(l)f1571/2 register 3-3: co nfiguration word 1 u-1 u-1 r/p-1 r/p-1 r/p-1 u-1 ? ?clkouten boren<1:0> (1) ? bit 13 bit 8 r/p-1 r/p-1 r/p-1 r/p-1 r/p-1 u-1 r/p-1 r/p-1 cp (2) mclre pwrte (1) wdte<1:0> ? fosc<1:0> bit 7 bit 0 legend: r = readable bit p = programmable bit u = unimplemented bit, read as ?1? ?0? = bit is cleared ?1? = bit is set n = value when blank or after bulk erase bit 13-12 unimplemented: read as ? 1 ? bit 11 clkouten : clock out enable bit 1 = off - clkout function is disabled. i/o or oscillator function on clkout pin 0 = on - clkout function is enabled on clkout pin bit 10-9 boren<1:0>: brown-out reset enable bits (1) 11 = on - brown-out reset enabled. the sboren bit is ignored. 10 = sleep - brown-out reset enabled while running and disabled in sleep. the sboren bit is ignored. 01 = sboden - brown-out reset controlled by the sboren bit in the pcon register 00 = off - brown-out reset disabled. the sboren bit is ignored. bit 8 unimplemented: read as ? 1 ? bit 7 cp : flash program memory code protection bit (2) 1 = off - code protection off. program memory can be read and written. 0 = on - code protection on. program memory cannot be read or written externally. bit 6 mclre: mclr /v pp pin function select bit if lvp bit = 1 (on) : this bit is ignored. mclr /v pp pin function is mclr ; weak pull-up enabled. if lvp bit = 0 (off) : 1 = on - mclr /v pp pin function is mclr ; weak pull-up enabled. 0 = off - mclr /v pp pin function is digital input; mclr internally disabled; weak pull-up under control of pin?s wpu control bit. bit 5 pwrte : power-up timer enable bit (1) 1 = off - pwrt disabled 0 = on - pwrt enabled bit 4-3 wdte<1:0>: watchdog timer enable bit 11 = on - wdt enabled. swdten is ignored. 10 = sleep - wdt enabled while running and disabled in sleep. swdten is ignored. 01 = swdten - wdt controlled by the swdten bit in the wdtcon register 00 = off - wdt disabled. swdten is ignored. bit 2 unimplemented: read as ? 1 ? bit 1-0 fosc<1:0>: oscillator selection bits 11 = ech - external clock, high-power mode: clki on osc1/clki 10 = ecm - external clock, medium-power mode: clki on osc1/clki 01 = ecl - external clock, low-power mode: clki on osc1/clki 00 = intosc - i/o function on osc1/clki note 1: enabling brown-out reset does not automatically enable power-up timer. 2: once enabled, code-protect can only be disabled by bulk erasing the device.
pic12(l)f1571/2 ds40001713a-page 8 ? 2013 microchip technology inc. register 3-4: co nfiguration word 2 r/p-1 r/p-1 r/p-1 r/p-1 r/p-1 r/p-1 lvp (1) debug (2) lpbor en borv (3) stvren pllen bit 13 bit 8 u-1 u-1 u-1 u-1 u-1 u-1 r/p-1 r/p-1 ? ? ? ? ? ?wrt<1:0> bit 7 bit 0 legend: r = readable bit p = programmable bit u = unimplemented bit, read as ?1? ?0? = bit is cleared ?1? = bit is set n = value when blank or after bulk erase bit 13 lvp: low-voltage programming enable bit (1) 1 = on - low-voltage programming enabled. mclr /v pp pin function is mclr. mclre configuration bit is ignored. 0 = off - high voltage on mclr /v pp must be used for programming bit 12 debug : debugger mode bit (2) 1 = off - in-circuit debugger disabled; icspclk and icspdat are general purpose i/o pins. 0 = on - in-circuit debugger enabled; icspclk and icspdat are dedicated to the debugger. bit 11 lpbor en : low-power brown-out reset enable bit 1 = off - low-power brown-out reset is disabled 0 = on - low-power brown-out reset is enabled bit 10 borv: brown-out reset voltage selection bit (3) 1 = low - brown-out reset voltage ( vbor ), low trip point selected 0 = high - brown-out reset voltage ( vbor ), high trip point selected bit 9 stvren: stack overflow/underflow reset enable bit 1 = on - stack overflow or underflow will cause a reset 0 = off - stack overflow or underflow will not cause a reset bit 8 pllen: pll enable bit 1 = on - 4xpll enabled 0 = off - 4xpll disabled bit 7-2 unimplemented: read as ? 1 ? bit 1-0 wrt<1:0>: flash memory self-write protection bits 2 kw flash memory: (pic12f1572 ): 11 = off - write protection off 10 = boot - 000h to 1ffh write-protected, 200h to 7ffh may be modified by pmcon control 01 = half - 000h to 3ffh write-protected, 400h to 7ffh may be modified by pmcon control 00 = all - 000h to 7ffh write-protected, no addresses may be modified by pmcon control 1 kw flash memory: (pic12f1571 ) 11 = off - write protection off 10 = boot - 000h to 0ffh write-protected, 100h to 3ffh may be modified by pmcon control 01 = half - 000h to 1ffh write-protected, 200h to 3ffh may be modified by pmcon control 00 = all - 000h to 3ffh write-protected, no addresses may be modified by pmcon control note 1: this bit cannot be programmed to ? 0 ? when programming mode is entered via lvp. 2: the debug bit in configuration words is managed automatically by device development tools including debuggers and programmers. for normal device operation, this bit should be maintained as a ? 1 ?. 3: see vbor parameter for specific trip point voltages.
? 2013 microchip technology inc. ds40001713a-page 9 pic12(l)f1571/2 4.0 program/verify mode in program/verify mode, the program memory and the configuration memory can be accessed and programmed in serial fashion. icspdat and icspclk are used for the data and the clock, respectively. all commands and data words are transmitted lsb first. data changes on the rising edge of the icspclk and is latched on the falling edge. in program/verify mode, both the icspdat and icspclk are schmitt trigger inputs. the sequence that enters the device into program/verify mode places all other logic into the reset state. upon entering program/verify mode, all i/os are automatically configured as high-impedance inputs and the address is cleared. 4.1 high-voltage program/verify mode entry and exit there are two different methods of entering program/ verify mode via high voltage: ?v pp ? first entry mode ?v dd ? first entry mode 4.1.1 v pp ? first entry mode to enter program/verify mode via the v pp -first method, the following sequence must be followed: 1. hold icspclk and icspdat low. all other pins should be unpowered. 2. raise the voltage on mclr from 0v to v ihh . 3. raise the voltage on v dd from 0v to the desired operating voltage. the v pp -first entry prevents the device from executing code prior to entering program/verify mode. for example, when the configuration word has mclr disabled (mclre = 0 ), the power-up time is disabled (pwrte = 0 ), the internal oscillator is selected (f osc = 100 ), and ra0 and ra1 are driven by the user application, the device will execute code. since this may prevent entry, v pp -first entry mode is strongly recommended. see the timing diagram in figure 8-2 . 4.1.2 v dd ? first entry mode to enter program/verify mode via the v dd -first method, the following sequence must be followed: 1. hold icspclk and icspdat low. 2. raise the voltage on v dd from 0v to the desired operating voltage. 3. raise the voltage on mclr from v dd or below to v ihh . the v dd -first method is useful when programming the device when v dd is already applied, for it is not necessary to disconnect v dd to enter program/verify mode. see the timing diagram in figure 8-1 . 4.1.3 program/verify mode exit to exit program/verify mode take mclr to v dd or lower (v il ). see figures 8-3 and 8-4 . 4.2 low-voltage programming (lvp) mode the low-voltage programming mode allows the devices to be programmed using v dd only, without high voltage. when the lvp bit of the configuration word 2 register is set to ? 1 ?, the low-voltage icsp programming entry is enabled. to disable the low-voltage icsp mode, the lvp bit must be programmed to ? 0 ?. this can only be done while in the high-voltage entry mode. entry into the low-voltage icsp program/verify mode requires the following steps: 1. mclr is brought to v il . 2. a 32-bit key sequence is presented on icspdat, while clocking icspclk. the key sequence is a specific 32-bit pattern, '0100 1101 0100 0011 0100 1000 0101 0000' (more easily remembered as mchp in ascii). the device will enter program/verify mode only if the sequence is valid. the least significant bit of the least significant nibble must be shifted in first. once the key sequence is complete, mclr must be held at v il for as long as program/verify mode is to be maintained. for low-voltage programming timing, see figures 8-8 and 8-9 . exiting program/verify mode is done by no longer driving mclr to v il . see figures 8-8 and 8-9 . note: to enter lvp mode, the lsb of the least significant nibble must be shifted in first. this differs from entering the key sequence on other parts.
pic12(l)f1571/2 ds40001713a-page 10 ? 2013 microchip technology inc. 4.3 program/verify commands these devices implement 13 programming commands, each six bits in length. the commands are summarized in table 4-1 . commands that have data associated with them are specified to have a minimum delay of t dly between the command and the data. after this delay, 16 clocks are required to either clock in or clock out the 14-bit data word. the first clock is for the start bit and the last clock is for the stop bit. table 4-1: command mapping command mapping data/note binary (msb ? lsb) hex load configuration x00000 00h 0 , data (14), 0 load data for program memory x00010 02h 0 , data (14), 0 read data from program memory x00100 04h 0 , data (14), 0 increment address x00110 06h ? reset address x10110 16h ? begin internally timed programming x01000 08h ? begin externally timed programming x11000 18h ? end externally timed programming x01010 0ah ? bulk erase program memory x01001 09h internally timed row erase program memory x10001 11h internally timed
? 2013 microchip technology inc. ds40001713a-page 11 pic12(l)f1571/2 4.3.1 load configuration the load configuration command is used to access the configuration memory (user id locations, configuration words, calibration words). the load configuration command sets the address to 8000h and loads the data latches with one word of data (see figure 4-1 ). after issuing the load configuration command, use the increment address command until the proper address to be programmed is reached. the address is then programmed by issuing either the begin internally timed programming or begin externally timed programming command. the only way to get back to the program memory (address 0) is to exit program/verify mode or issue the reset address command after the configuration memory has been accessed by the load configuration command. figure 4-1: load configuration 4.3.2 load data for program memory the load data for program memory command is used to load one 14-bit word into the data latches. the word programs into program memory after the begin internally timed programming or begin externally timed programming command is issued (see figure 4-2 ). figure 4-2: load data for program memory note: externally timed writes are not supported for configuration and calibration bits. any externally timed write to the configuration or calibration word will have no effect on the targeted word. x 00 lsb msb 0 12 3 4 5 61 2 15 16 icspclk icspdat 0 0 0 0 t dly icspclk icspdat 12 3 4 5 6 12 15 16 x 00 lsb msb 0 0 1 0 0 t dly
pic12(l)f1571/2 ds40001713a-page 12 ? 2013 microchip technology inc. 4.3.3 read data from program memory the read data from program memory command will transmit data bits out of the program memory map currently accessed, starting with the second rising edge of the clock input. the icspdat pin will go into output mode on the first falling clock edge, and it will revert to input mode (high-impedance) after the 16th falling edge of the clock. if the program memory is code-protected (cp ), the data will be read as zeros (see figure 4-3 ). figure 4-3: read data from program memory 4.3.4 increment address the address is incremented when this command is received. it is not possible to decrement the address. to reset this counter, the user must use the reset address command or exit program/verify mode and re-enter it. if the address is incremented from address 7fffh, it will wrap-around to location 0000h. if the address is incremented from ffffh, it will wrap-around to location 8000h (see figure 4-4 ). figure 4-4: increment address 1 2 3 4 5 6 1 2 15 16 lsb msb t dly icspclk icspdat input input output x (from programmer) x 0 001 0 icspdat (from device) x 0 123 4 5 6 1 2 icspclk icspdat 0 1 1 3 x x x t dly next command 0 address + 1 address
? 2013 microchip technology inc. ds40001713a-page 13 pic12(l)f1571/2 4.3.5 reset address the reset address command will reset the address to 0000h, regardless of the current value. the address is used in program memory or the configuration memory (see figure 4-5 ). figure 4-5: reset address 4.3.6 begin internally timed programming a load configuration or load data for program memory command must be given before every begin programming command. programming of the addressed memory will begin after this command is received. an internal timing mechanism executes the write. the user must allow for the program cycle time, t pint , in order for the programming to complete. the end externally timed programming command is not needed when the begin internally timed programming is used to start the programming. the program memory address that is being programmed is not erased prior to being programmed (see figure 4-6 ). figure 4-6: begin inter nally timed programming x 0 1 23 4 5 6 12 icspclk icspdat 0 1 1 3 x x x t dly next command 1 0000h n address 123 4 5 6 1 2 icspclk icspdat 3 t pint x 1 0 0 0 x x x 0 next command
pic12(l)f1571/2 ds40001713a-page 14 ? 2013 microchip technology inc. 4.3.7 begin externally timed programming a load configuration or load data for program memory command must be given before every begin programming command. programming of the addressed memory will begin after this command is received. to complete the programming, the end externally timed programming command must be sent in the specified time window defined by t pext (see figure 4-7 ). externally timed writes are not supported for configuration and calibration bits. any externally timed write to the configuration or calibration word will have no effect on the targeted word. figure 4-7: begin externally timed programming 4.3.8 end externally timed programming this command is required after a begin externally timed programming command is given. this command must be sent within the time window specified by t pext after the begin externally timed programming command is sent. after sending the end externally timed programming command, an additional delay (t dis ) is required before sending the next command. this delay is longer than the delay ordinarily required between other commands (see figure 4-8 ). figure 4-8: end externally timed programming x 1 0 1 23 45 61 2 icspclk icspdat 00 0 1 1 0 end externally timed programming command t pext 3 1 23 4 5 61 2 icspclk icspdat 3 t dis x 1 0 1 0 x x x 1 next command
? 2013 microchip technology inc. ds40001713a-page 15 pic12(l)f1571/2 4.3.9 bulk erase program memory the bulk erase program memory command performs two different functions dependent on the current state of the address. a bulk erase program memory command should not be issued when the address is greater than 8008h. after receiving the bulk erase program memory command, the erase will not complete until the time interval, t erab , has expired. figure 4-9: bulk erase program memory 4.3.10 row erase program memory the row erase program memory command will erase an individual row. refer to ta b l e 4 - 2 for row sizes of specific devices and the pc bits used to address them. if the program memory is code-protected, the row erase program memory command will be ignored. when the address is 8000h-8008h, the row erase program memory command will only erase the user id locations, regardless of the setting of the cp configuration bit. after receiving the row erase program memory command, the erase will not complete until the time interval, t erar , has expired (see figure 4-10 ). figure 4-10: row e rase program memory address 0000h-7fffh: program memory is erased configuration words are erased address 8000h-8008h: program memory is erased configuration words are erased user id locations are erased note: the code protection configuration bit (cp ) has no effect on the bulk erase program memory command. 1 23 45 61 2 icspclk icspdat 3 t erab x 1 1 0 0 x x x 0 next command 12 3 4 5 6 1 2 icspclk icspdat 3 t erar x 0 1 0 0 x x x 1 next command
pic12(l)f1571/2 ds40001713a-page 16 ? 2013 microchip technology inc. table 4-2: programming row and latch sizes devices pc erase row size (number of 14-bit words) write row size (number of 14-bit latches) pic12f1571 <15:4> 16 16 PIC12LF1571 pic12f1572 pic12lf1572
? 2013 microchip technology inc. ds40001713a-page 17 pic12(l)f1571/2 5.0 programming algorithms the devices use internal latches to temporarily store the 14-bit words used for programming. refer to table 4-2 for specific latch information. the data latches allow the user to write the program words with a single begin externally timed programming or begin internally timed programming command. the load program data or the load configuration command is used to load a single data latch. the data latch will hold the data until the begin externally timed programming or begin internally timed programming command is given. the lower bits of the address define the data latch addresses and are aligned with the lsbs of the address. the upper bits of the address define the flash program memory row. the upper bits that define the row address are indicated in tab l e 4 - 2 . when the begin externally timed programming or begin internally timed programming commands are given, the data contained in the data latches will be programmed into the corresponding addresses of the row specified by the upper bits of the pc. writes cannot cross a physical row boundary. for example, in a 16-word latch device, attempting to write from address 0002h-0011h will result in data being written to 0010h- 001fh. if more than the maximum number of latches are written without a begin externally timed programming or begin internally timed programming command, the data in the data latches will be overwritten. the following figures show the recommended flowcharts for programming.
pic12(l)f1571/2 ds40001713a-page 18 ? 2013 microchip technology inc. figure 5-1: device program/verify flowchart done start bulk erase device write user ids enter programming mode write program memory (1) verify user ids write configuration words (2) verify configuration words exit programming mode verify program memory note 1: see figure 5-2 . 2: see figure 5-5 .
? 2013 microchip technology inc. ds40001713a-page 19 pic12(l)f1571/2 figure 5-2: program memory flowchart start read data program memory data correct? report programming failure all locations done? no no increment address command from bulk erase program yes memory (1, 2) done yes note 1: this step is optional if the device has already been erased or has not been previously programmed. 2: if the device is code-protected or must be comp letely erased, then bulk erase the device per figure 5-6 . 3: see figure 5-3 or figure 5-4 . program cycle (3)
pic12(l)f1571/2 ds40001713a-page 20 ? 2013 microchip technology inc. figure 5-3: one-word program cycle begin programming wait t dis load data for program memory command (internally timed) begin programming wait t pext command (externally timed) (1) end programming wait t pint program cycle command note 1: externally timed writes are not supported for configuration and calibration bits.
? 2013 microchip technology inc. ds40001713a-page 21 pic12(l)f1571/2 figure 5-4: multiple-word program cycle begin programming wait t pint load data for program memory command (internally timed) wait t pext end programming wait t dis load data for program memory increment address command load data for program memory begin programming command (externally timed) latch 1 latch 2 latch 32 increment address command program cycle command
pic12(l)f1571/2 ds40001713a-page 22 ? 2013 microchip technology inc. figure 5-5: conf iguration memory program flowchart start load configuration program cycle (2) read data memory command data correct? report programming failure address = 8004h? data correct? report programming failure yes no yes ye s no increment address command no increment address command done one-word one-word program cycle (2) (config. word 1) increment address command increment address command (user id) from program read data memory command from program program bulk erase memory (1) data correct? report programming failure yes no one-word program cycle (2) (config. word 2) increment address command read data memory command from program note 1: this step is optional if the device is erased or not previously programmed. 2: see figure 5-3 .
? 2013 microchip technology inc. ds40001713a-page 23 pic12(l)f1571/2 figure 5-6: erase flowchart start load configuration done bulk erase program memory note: this sequence does not erase the calibration words.
pic12(l)f1571/2 ds40001713a-page 24 ? 2013 microchip technology inc. 6.0 code protection code protection is controlled using the cp bit in configuration word 1. when code protection is enabled, all program memory locations (0000h-7fffh) read as ? 0 ?. further programming is disabled for the program memory (0000h-7fffh). program memory can still be programmed and read during program execution. the user id locations and configuration words can be programmed and read out regardless of the code protection settings. 6.1 program memory code protection is enabled by programming the cp bit in configuration word 1 register to ? 0 ?. the only way to disable code protection is to use the bulk erase program memory command. 7.0 hex file usage in the hex file there are two bytes per program word stored in the intel ? inhx32 hex format. data is stored lsb first, msb second. because there are two bytes per word, the addresses in the hex file are 2x the address in program memory. (example: the configuration word 1 is stored at 8007h. in the hex file this will be referenced as 1000eh-1000fh). 7.1 configuration word to allow portability of code, it is strongly recommended that the programmer is able to read the configuration words and user id locations from the hex file. if the configuration words information was not present in the hex file, a simple warning message may be issued. similarly, while saving a hex file, configuration words and user id information should be included. 7.2 device id if a device id is present in the hex file at 1000ch- 1000dh (8006h on the part), the programmer should verify the device id against the value read from the part. on a mismatch condition, the programmer should generate a warning message. 7.3 checksum computation the checksum is calculated by two different methods dependent on the setting of the cp configuration bit. 7.3.1 program code protection disabled with the program code protection disabled, the checksum is computed by reading the contents of the program memory locations and adding up the program memory data starting at address 0000h, up to the maximum user addressable location. any carry bits exceeding 16 bits are ignored. additionally, the relevant bits of the configuration words are added to the checksum. all unimplemented configuration bits are masked to ? 0 ?. table 7-1: conf iguration word mask values device config. word 1 mask config. word 2 mask pic12f1571 0efbh 3f03h PIC12LF1571 0efbh 3f03h pic12f1572 0efbh 3f03h pic12lf1572 0efbh 3f03h
? 2013 microchip technology inc. ds40001713a-page 25 pic12(l)f1571/2 7.3.2 program code protection enabled when the mplab ide check box for configure->id memory...-> use unprotected checksum is checked, then the 16-bit checksum of the equivalent unprotected device is computed and stored in the user id. each nibble of the unprotected checksum is stored in the least significant nibble of each of the four user id locations. the most significant checksum nibble is stored in the user id at location 8000h, the second most significant nibble is stored at location 8001h, and so forth for the remaining nibbles and id locations. the protected checksums in ta b l e 7 - 2 assume that the use unprotected checksum box is checked. the checksum of a code-protected device is computed in the following manner: the least significant nibble of each user id is used to create a 16-bit value. the least significant nibble of user id location 8000h is the most significant nibble of the 16-bit value. the least significant nibble of user id location 8001h is the second most significant nibble, and so forth for the remaining user ids and 16-bit value nibbles. the resulting 16-bit value is summed with the configuration words. all unimplemented configuration bits are masked to ? 0 ?. table 7-2: checksums device config1 config2 checksum unprotected protected mask word mask unprotected code-protected blank 00aah first and last blank 00aah first and last pic12f1571 3fffh 3f7fh 0efbh 3fffh 3f03h 49feh cb54h 977ch 18d2h PIC12LF1571 3fffh 3f7fh 0efbh 3fffh 3f03h 49feh cb54h 977ch 18d2h pic12f1572 3fffh 3f7fh 0efbh 3fffh 3f03h 45feh c754h 937ch 14d2h pic12lf1572 3fffh 3f7fh 0efbh 3fffh 3f03h 45feh c754h 937ch 14d2h
pic12(l)f1571/2 ds40001713a-page 26 ? 2013 microchip technology inc. 8.0 electrical specifications refer to device specific data sheet for absolute maximum ratings. table 8-1: ac/dc characteristics timing requirements for program/verify mode ac/dc characteristics standard operating conditions production tested at 25c sym. characteristics min. typ. max. units conditions/comments programming supply voltages and currents v dd supply voltage (v ddmin (2) , v ddmax ) PIC12LF1571/2 1.80 2.70 ? 3.60 3.60 v v f osc ?? 16 mhz f osc ?? 32 mhz pic12f1571/2 2.30 2.70 ? 5.50 5.50 v v f osc ?? 16 mhz f osc ?? 32 mhz v pew read/write and row erase operations v ddmin ?v ddmax v v be bulk erase operations 2.7 ? v ddmax v i ddi current on v dd , idle ? ? 1.0 ma i ddp current on v dd , programming ? ? 3.0 ma i pp v pp current on mclr /v pp ? ? 600 ? a v ihh high voltage on mclr /v pp for program/verify mode entry 8.0 ? 9.0 v t vhhr mclr rise time (v il to v ihh ) for program/verify mode entry ??1.0 ? s i/o pins v ih (icspclk, icspdat, mclr /v pp ) input high level 0.8 v dd ?? v v il (icspclk, icspdat, mclr /v pp ) input low level ? ? 0.2 v dd v v oh icspdat output high level v dd -0.7 v dd -0.7 v dd -0.7 ?? v i oh = 3.5 ma, v dd = 5v i oh = 3 ma, v dd = 3.3v i oh = 2 ma, v dd = 1.8v v ol icspdat output low level ?? v ss +0.6 v ss +0.6 v ss +0.6 v i oh = 8 ma, v dd = 5v i oh = 6 ma, v dd = 3.3v i oh = 3 ma, v dd = 1.8v v bor brown-out reset voltage: borv = 0 (high trip) borv = 1 (low trip) ? ? ? 2.70 2.45 1.90 ? ? ? v v v pic12(l)f1571/2 pic12f1571/2 PIC12LF1571/2 programming mode entry and exit t ents programing mode entry setup time: icspclk, icspdat setup time before v dd or mclr ? 100 ? ? ns t enth programing mode entry hold time: icspclk, icspdat hold time after v dd or mclr ? 250 ? ? ? s serial program/verify t ckl clock low pulse width 100 ? ? ns t ckh clock high pulse width 100 ? ? ns t ds data in setup time before clock ? 100 ? ? ns t dh data in hold time after clock ? 100 ? ? ns t co clock ? to data out valid (during a read data command) 0 ? 80 ns t lzd clock ? to data low-impedance (during a read data command) 0 ? 80 ns t hzd clock ? to data high-impedance (during a read data command) 0 ? 80 ns note 1: externally timed writes are not support ed for configuration and calibration bits. 2: bulk-erased devices default to brown-out enabled. v ddmin is 2.85 volts when performing low-voltage programming on a bulk-erased device, to ensure that the device is not held in brown-out reset.
? 2013 microchip technology inc. ds40001713a-page 27 pic12(l)f1571/2 8.1 ac timing diagrams figure 8-1: programming mode entry ? v dd first figure 8-2: programming mode entry ? v pp first figure 8-3: programming mode exit ? v pp last figure 8-4: programming mode exit ? v dd last t dly data input not driven to next clock input (delay required between command/data or command/ command) 1.0 ? ? ? s t erab bulk erase cycle time ? ? 5 ms t erar row erase cycle time ? ? 2.5 ms t pint internally timed programming operation time ?? 2.5 5ms program memory configuration words t pext externally timed programming pulse 1.0 ? 2.1 ms note 1 t dis time delay from program to compare (hv discharge time) 300 ? ? ? s t exit time delay when exiting program/verify mode 1 ? ? ? s note 1: externally timed writes are not support ed for configuration and calibration bits. 2: bulk-erased devices default to brown-out enabled. v ddmin is 2.85 volts when performing low-voltage programming on a bulk-erased device, to ensure that the device is not held in brown-out reset. table 8-1: ac/dc characteristics timing requirements for program/verify mode ac/dc characteristics standard operating conditions production tested at 25c sym. characteristics min. typ. max. units conditions/comments v pp t enth v dd t ents icspdat icspclk v ihh v il t enth icspdat icspclk v dd t ents v pp v ihh v il t exit v pp v dd icspdat icspclk v ihh v il t exit v pp v dd icspdat icspclk v ihh v il
pic12(l)f1571/2 ds40001713a-page 28 ? 2013 microchip technology inc. figure 8-5: clock and data timing figure 8-6: write comm and ? payload timing figure 8-7: read comm and ? payload timing as icspclk t ckh t ckl t dh t ds icspdat output t co icspdat icspdat icspdat t lzd t hzd input as from input from output to input to output 12 3 4 5 6 1 2 15 16 x 0 lsb msb 0 t dly command next command payload icspclk icspdat x x x x x 1 23 4 5 6 1 2 15 16 x t dly command next command payload icspclk icspdat x x x x x (from programmer) lsb msb 0 icspdat (from device) x
? 2013 microchip technology inc. ds40001713a-page 29 pic12(l)f1571/2 figure 8-8: lvp entry (powering up) figure 8-9: lvp entry (powered) t ckl t ckh 33 clocks 0 1 2 ... 31 t dh t ds t enth lsb of pattern msb of pattern v dd mclr icspclk icspdat t ents t ckh t ckl 33 clocks note 1: sequence matching can start with no edge on mclr first. 0 1 2 ... 31 t dh t ds t enth lsb of pattern msb of pattern v dd mclr icspclk icspdat
pic12(l)f1571/2 ds40001713a-page 30 ? 2013 microchip technology inc. appendix a: revision history revision a (06/2013) initial release of this document.
? 2013 microchip technology inc. ds40001713a-page 31 information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. it is your responsibility to ensure that your application meets with your specifications. microchip makes no representations or warranties of any kind whether express or implied, written or oral, statutory or otherwise, related to the information, including but not limited to its condition, quality, performance, merchantability or fitness for purpose . microchip disclaims all liability arising from this information and its use. use of microchip devices in life support and/or safety applications is entirely at the buyer?s risk, and the buyer agrees to defend, indemnify and hold harmless microchip from any and all damages, claims, suits, or expenses resulting from such use. no licenses are conveyed, implicitly or otherwise, under any microchip intellectual property rights. trademarks the microchip name and logo, the microchip logo, dspic, flashflex, k ee l oq , k ee l oq logo, mplab, pic, picmicro, picstart, pic 32 logo, rfpic, sst, sst logo, superflash and uni/o are registered trademarks of microchip technology incorporated in the u.s.a. and other countries. filterlab, hampshire, hi-tech c, linear active thermistor, mtp, seeval and the embedded control solutions company are registered trademarks of microchip technology incorporated in the u.s.a. silicon storage technology is a registered trademark of microchip technology inc. in other countries. analog-for-the-digital age, app lication maestro, bodycom, chipkit, chipkit logo, codeguard, dspicdem, dspicdem.net, dspicworks, dsspeak, ecan, economonitor, fansense, hi-tide, in-circuit serial programming, icsp, mindi, miwi, mpasm, mpf, mplab certified logo, mplib, mplink, mtouch, omniscient code generation, picc, picc-18, picdem, picdem.net, pickit, pictail, real ice, rflab, select mode, sqi, serial quad i/o, total endurance, tsharc, uniwindriver, wiperlock, zena and z-scale are trademarks of microchip technology incorporated in the u.s.a. and other countries. sqtp is a service mark of microchip technology incorporated in the u.s.a. gestic and ulpp are registered trademarks of microchip technology germany ii gmbh & co. kg, a subsidiary of microchip technology inc., in other countries. all other trademarks mentioned herein are property of their respective companies. ? 2013, microchip technology incorporated, printed in the u.s.a., all rights reserved. printed on recycled paper. isbn: 9781620772652 note the following details of the code protection feature on microchip devices: ? microchip products meet the specification cont ained in their particular microchip data sheet. ? microchip believes that its family of products is one of the most secure families of its kind on the market today, when used i n the intended manner and under normal conditions. ? there are dishonest and possibly illegal methods used to breach the code protection feature. all of these methods, to our knowledge, require using the microchip produc ts in a manner outside the operating specif ications contained in microchip?s data sheets. most likely, the person doing so is engaged in theft of intellectual property. ? microchip is willing to work with the customer who is concerned about the integrity of their code. ? neither microchip nor any other semiconduc tor manufacturer can guarantee the security of their code. code protection does not mean that we are guaranteeing the product as ?unbreakable.? code protection is constantly evolving. we at microchip are co mmitted to continuously improvin g the code protection features of our products. attempts to break microchip?s code protection feature may be a violation of the digital millennium copyright act. if such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that act. microchip received iso/ts-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in chandler and tempe, arizona; gresham, oregon and design centers in california and india. the company?s quality system processes and procedures are for its pic ? mcus and dspic ? dscs, k ee l oq ? code hopping devices, serial eeproms, microperipherals, nonvolatile memory and analog products. in addition, microchip?s quality system for the design and manufacture of development systems is iso 9001:2000 certified. quality management s ystem certified by dnv == iso/ts 16949 ==
ds40001713a-page 32 ? 2013 microchip technology inc. americas corporate office 2355 west chandler blvd. chandler, az 85224-6199 tel: 480-792-7200 fax: 480-792-7277 technical support: http://www.microchip.com/ support web address: www.microchip.com atlanta duluth, ga tel: 678-957-9614 fax: 678-957-1455 boston westborough, ma tel: 774-760-0087 fax: 774-760-0088 chicago itasca, il tel: 630-285-0071 fax: 630-285-0075 cleveland independence, oh tel: 216-447-0464 fax: 216-447-0643 dallas addison, tx tel: 972-818-7423 fax: 972-818-2924 detroit farmington hills, mi tel: 248-538-2250 fax: 248-538-2260 indianapolis noblesville, in tel: 317-773-8323 fax: 317-773-5453 los angeles mission viejo, ca tel: 949-462-9523 fax: 949-462-9608 santa clara santa clara, ca tel: 408-961-6444 fax: 408-961-6445 toronto mississauga, ontario, canada tel: 905-673-0699 fax: 905-673-6509 asia/pacific asia pacific office suites 3707-14, 37th floor tower 6, the gateway harbour city, kowloon hong kong tel: 852-2401-1200 fax: 852-2401-3431 australia - sydney tel: 61-2-9868-6733 fax: 61-2-9868-6755 china - beijing tel: 86-10-8569-7000 fax: 86-10-8528-2104 china - chengdu tel: 86-28-8665-5511 fax: 86-28-8665-7889 china - chongqing tel: 86-23-8980-9588 fax: 86-23-8980-9500 china - hangzhou tel: 86-571-2819-3187 fax: 86-571-2819-3189 china - hong kong sar tel: 852-2943-5100 fax: 852-2401-3431 china - nanjing tel: 86-25-8473-2460 fax: 86-25-8473-2470 china - qingdao tel: 86-532-8502-7355 fax: 86-532-8502-7205 china - shanghai tel: 86-21-5407-5533 fax: 86-21-5407-5066 china - shenyang tel: 86-24-2334-2829 fax: 86-24-2334-2393 china - shenzhen tel: 86-755-8864-2200 fax: 86-755-8203-1760 china - wuhan tel: 86-27-5980-5300 fax: 86-27-5980-5118 china - xian tel: 86-29-8833-7252 fax: 86-29-8833-7256 china - xiamen tel: 86-592-2388138 fax: 86-592-2388130 china - zhuhai tel: 86-756-3210040 fax: 86-756-3210049 asia/pacific india - bangalore tel: 91-80-3090-4444 fax: 91-80-3090-4123 india - new delhi tel: 91-11-4160-8631 fax: 91-11-4160-8632 india - pune tel: 91-20-2566-1512 fax: 91-20-2566-1513 japan - osaka tel: 81-6-6152-7160 fax: 81-6-6152-9310 japan - tokyo tel: 81-3-6880- 3770 fax: 81-3-6880-3771 korea - daegu tel: 82-53-744-4301 fax: 82-53-744-4302 korea - seoul tel: 82-2-554-7200 fax: 82-2-558-5932 or 82-2-558-5934 malaysia - kuala lumpur tel: 60-3-6201-9857 fax: 60-3-6201-9859 malaysia - penang tel: 60-4-227-8870 fax: 60-4-227-4068 philippines - manila tel: 63-2-634-9065 fax: 63-2-634-9069 singapore tel: 65-6334-8870 fax: 65-6334-8850 taiwan - hsin chu tel: 886-3-5778-366 fax: 886-3-5770-955 taiwan - kaohsiung tel: 886-7-213-7828 fax: 886-7-330-9305 taiwan - taipei tel: 886-2-2508-8600 fax: 886-2-2508-0102 thailand - bangkok tel: 66-2-694-1351 fax: 66-2-694-1350 europe austria - wels tel: 43-7242-2244-39 fax: 43-7242-2244-393 denmark - copenhagen tel: 45-4450-2828 fax: 45-4485-2829 france - paris tel: 33-1-69-53-63-20 fax: 33-1-69-30-90-79 germany - munich tel: 49-89-627-144-0 fax: 49-89-627-144-44 italy - milan tel: 39-0331-742611 fax: 39-0331-466781 netherlands - drunen tel: 31-416-690399 fax: 31-416-690340 spain - madrid tel: 34-91-708-08-90 fax: 34-91-708-08-91 uk - wokingham tel: 44-118-921-5869 fax: 44-118-921-5820 worldwide sales and service 11/29/12


▲Up To Search▲   

 
Price & Availability of PIC12LF1571

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X